import useRequest from "@/api/useRequest";
import {IPage} from "@/interface/modules/system";

export class whisperController {

    static whisper(userFileId:string): Promise<any> {
        return useRequest({
            url: "/whisper/file?userFileId="+userFileId,
            method: "get"
        })
    }

    static submitLocalWhisperTask(data:any): Promise<any> {
        return useRequest({
            url: "/whisper/submitLocalWhisperTask",
            method: "post",
            data
        })
    }
    static getText(userFileId:string): Promise<any> {
        return useRequest({
            url: "/whisper/text?userFileId="+userFileId,
            method: "get"
        })
    }

    static saveText(data:any): Promise<any> {
        return useRequest({
            url: "/lux/updateVideoText",
            method: "post",
            data
        })

    }

    static getAdapter(): Promise<any> {
        return useRequest({
            url: "/whisper/getAdapter",
            method: "get"
        })
    }
}
